package com.bloody.android;

import android.content.Context;

import com.bloody.android.Characters.Character;
import com.bloody.android.Characters.Gaara;
import com.bloody.android.Characters.Ichigo;
import com.bloody.android.Characters.Kakashi;
import com.bloody.android.Characters.Mustang;
import com.bloody.android.Characters.Naruto;
import com.bloody.android.Characters.ViewCharacter;
import com.bloody.android.Characters.ViewGaara;
import com.bloody.android.Characters.ViewIchigo;
import com.bloody.android.Characters.ViewKakashi;
import com.bloody.android.Characters.ViewMustang;
import com.bloody.android.Characters.ViewNaruto;

public class CharacterViewFactory {

	private CharacterViewFactory(){}
	
	public static ViewCharacter getInstance(Character ch, Context context)
	{
		ViewCharacter instance = null;
    	if (ch instanceof Ichigo)
    		instance = new ViewIchigo(context, (Ichigo)ch);
    	else if (ch instanceof Naruto)
    		instance = new ViewNaruto(context, (Naruto)ch);
    	else if (ch instanceof Mustang)
    		instance = new ViewMustang(context, (Mustang)ch);
    	else if (ch instanceof Gaara)
    		instance = new ViewGaara(context, (Gaara)ch);
    	else if (ch instanceof Kakashi)
    		instance = new ViewKakashi(context, (Kakashi)ch);

    	return instance;
	}
	
}
